
$('.register').on('click',function(){
    location.href='register.html'
})
$('.back').on('click',function(){
    location.href='index.html'
})
$('.login').on('click',function(){
    let informationstr=localStorage.getItem('INFORMATION')
    let information=JSON.parse(informationstr)
    console.log(information)
    if($('.number').val()==information.name2&&$('.password').val()==information.password){
       let result=confirm('登陆成功是否跳转到购物车')
       if(result){
           location.href='shopcart.html'
       }
    }else{
        alert('密码错误')
    }
})